The ability of synapses to strengthen or weaken over time, in response to increases or decreases in their activity.